﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface_Tier;
using Transfer_Object_Tier;
using System.Data;
using Data_Access_Tier;

namespace Business_Tier
{
    public class BT_DIC_SHIFTData : MarshalByRefObject, IDIC_SHIFTData
    {
        DIC_SHIFTData ca= new DIC_SHIFTData ();
        public int DIC_SHIFT_Insert(String ShiftCode, String ShiftName, DateTime BeginTime, DateTime EndTime, Boolean IsOvernight, DateTime BeginTime1, DateTime BeginTime2, DateTime EndTime1, DateTime EndTime2, Int32 LateMinute, Int32 EarlyMinute, String Description)
        {
            return ca.DIC_SHIFT_Insert(ShiftCode, ShiftName, BeginTime, EndTime, IsOvernight, BeginTime1, BeginTime2, EndTime1, EndTime2, LateMinute, EarlyMinute, Description);
        }
        public int DIC_SHIFT_Update(String ShiftCode, String ShiftName, DateTime BeginTime, DateTime EndTime, Boolean IsOvernight, DateTime BeginTime1, DateTime BeginTime2, DateTime EndTime1, DateTime EndTime2, Int32 LateMinute, Int32 EarlyMinute, String Description)
        {
            return ca.DIC_SHIFT_Update(ShiftCode, ShiftName, BeginTime, EndTime, IsOvernight, BeginTime1, BeginTime2, EndTime1, EndTime2, LateMinute, EarlyMinute, Description);
        }
        public int DIC_SHIFT_Disable(String ShiftCode, ref Boolean Enabled)
        { 
            return 1; 
        }
        public int DIC_SHIFT_Delete(String ShiftCode)
        {
            return ca.DIC_SHIFT_Delete(ShiftCode); 
        }
        public int DIC_SHIFT_Save(String ShiftCode, String ShiftName, DateTime BeginTime, DateTime EndTime, Boolean IsOvernight, DateTime BeginTime1, DateTime BeginTime2, DateTime EndTime1, DateTime EndTime2, Int32 LateMinute, Int32 EarlyMinute, String Description)
        {
            return ca.DIC_SHIFT_Save(ShiftCode, ShiftName, BeginTime, EndTime, IsOvernight, BeginTime1, BeginTime2, EndTime1, EndTime2, LateMinute, EarlyMinute, Description);
        }
        public DataSet DIC_SHIFT_GetList()
        {
            return ca.DIC_SHIFT_GetList();
        }
        public DataSet DIC_SHIFT_Get(String ShiftCode)
        {
            return ca.DIC_SHIFT_Get(ShiftCode);
        }
        
    }
}
